﻿using CPPEI.Coolzon.Common;
using CPPEI.Coolzon.Data;
using CPPEI.Coolzon.Data.MainServiceData;
using CPPEI.Coolzon.Server.CacheData;
using CPPEI.Coolzon.Service.Contract;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.Server.ServiceImplement
{
    public class ReqGetDomainInstanceModeHandler: BaseHandler<ReqGetDomainInstanceModeData, RespGetDomainInstanceModeData>
    {
        public ReqGetDomainInstanceModeHandler()
            : base(Service.Contract.REQUEST_SCENARIO.CONNENT, Service.Contract.REQUEST_COMMAND.CONNECT.GETDOMAININSTANCEMODE)
        {
        }

        protected override RespGetDomainInstanceModeData OnHandle(Data.MainServiceData.Request request, ReqGetDomainInstanceModeData requestData)
        {
            // 获取用户所要创建的域的方案的，域实例模型
            Settings.DomainInstanceMode domainInstanceMode = Settings.DomainInstanceMode.Singleton;

            RespGetDomainInstanceModeData responseData = new RespGetDomainInstanceModeData();
            responseData.DomainInstanceMode = Service.Contract.DomainInstanceMode.Singleton;

            return responseData;
        }
    }
}
